/**
 * Copyright (C), 2015-2020, XXX有限公司
 * FileName: Message
 * Author:   zmjha
 * Date:     2020/8/2 11:14
 * Description: 返回码状态码
 * History:
 * <author>          <time>          <version>          <desc>
 * 作者姓名           修改时间           版本号              描述
 */
package com.zmj.utils;

/**
 * 〈一句话功能简述〉<br> 
 * 〈返回码状态码〉
 *
 * @author zmjha
 * @create 2020/8/2
 * @since 1.0.0
 */
public class Message {

    private  int code;
    private String message;

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    @Override
    public String toString() {
        final StringBuilder sb = new StringBuilder("{");
        sb.append("\"code\":")
                .append(code);
        sb.append(",\"message\":\"")
                .append(message).append('\"');
        sb.append('}');
        return sb.toString();
    }
}